package zhr.chapter5.three;

public class ClassB extends ClassA {
    double n;

    public double sum() {
        double c;
        super.n = (int) n;
        c = super.sum();
        return c + n;
    }

    public double sub() {
        double c;
        c = super.sum();
        return c - n;
    }
}
